<template>
  <div id="app">
    <ul>
      <li>
        <i></i>
        <p>止盈 <span class="grayColor">（10% ~ 15000%）</span></p>
        <div><input type="text" placeholder="请设置止盈百分比"><span>%</span></div>
      </li>
      <li>
        <i></i>
        <p>止损 <span class="grayColor">（10% ~ 80%）</span></p>
        <div><input type="text" placeholder="请设置止损百分比"><span>%</span></div>
      </li>
      <li>
        <i></i>
        <p>偏离点数 <span class="grayColor">（10% ~ 80%）</span></p>
        <div><input type="text" placeholder="请设置偏离点数"><span></span></div>
      </li>
      <li>
        <i></i>
        <p>免密金额 <span class="grayColor">（1000 ~ 无限大）</span></p>
        <div><input type="text" placeholder="请设置免输密码金额"><span></span></div>
      </li>
    </ul>
    <div class="set">
      <a>重置</a>
      <a>保存更改</a>
    </div>
  </div>
</template>

<script>
  export default {
    name: "parameter",
    beforeCreate() {
      document.querySelector('body').setAttribute('style', 'background-color:#f3f3f3')
    },
    beforeDestroy() {
      document.querySelector('body').removeAttribute('style')
    }
  }
</script>

<style lang="less" scoped>
  #app {
    ul {
      li {
        background: #fff;
        position: relative;
        padding: 0.5rem 0 0.5rem 0.5rem;
        margin-top: 0.5rem;
        i {
          position: absolute;
          top: 0.25rem;
          width: 1rem;
          height: 1rem;
          background: url("../../../assets/images/parameter.png") -0.1rem 0;
          background-size: 6rem;
        }
        p {
          padding-left: 1.3rem;
          font-size: 0.554rem;
        }
        div {
          display: flex;
          margin-top: 0.7rem;
          input {
            flex: 9;
            line-height: 1.38rem;
            box-sizing: border-box;
            padding-left: 0.5rem;
            background: #eee;
            outline: none;
            font-size: 0.554rem;
            border: 1px solid #dcdcdc;
          }
          span {
            flex: 1;
            font-size: 0.554rem;
            line-height: 1.38rem;
            text-align: center;
          }
        }
        &:nth-of-type(2){
          i{
            background-position:-1.6rem 0;
          }
        }
        &:nth-of-type(3){
          i{
            background-position:-2.9rem 0;
          }
        }
        &:nth-of-type(4){
          i{
            background-position:-4rem 0;
          }
        }
      }
    }
    .set {
      display: flex;
      line-height: 1.89rem;
      position: fixed;
      width: 100%;
      max-width: 750px;
      bottom: 0;
      a {
        flex: 1;
        text-align: center;
        font-size: 0.554rem;
        &:nth-of-type(1){
          background: #dadada;
        }
        &:nth-of-type(2){
          background: #ff9500;
          color: #fff;
        }
      }
    }
  }
</style>
